#pragma once

// include some common macros

// delete COM pointer and set it to null
#define SAFE_DELETE(x) if(x!=0){x->Release();x=0;};

// delete common pointer and set it to null
#define PTR_DELETE(x) {delete x;x=0;};